package com.ace.user.common.bean;

import com.ace.user.common.constant.Group;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * token请求参数
 * @Author yudong
 * @Date 2018年07月03日 下午1:04
 */
@Data
@Accessors(chain = true)
public class TokenDTO implements Serializable {


    private static final long serialVersionUID = -6545477602361730992L;
    /**
     * 用户ID
     */
    @NotNull(message = "{tokenDTO.id}",groups = {Group.Add.class})
    private String id;
    /**
     * token值
     */
    @NotNull(message = "{tokenDTO.value}",groups = {Group.Deletes.class})
    private String value;
    /**
     * 用户身份类型
     */
    @NotNull(message = "{tokenDTO.type}",groups = {Group.Add.class})
    private String type;
    /**
     * 是否更新时间
     */
    @NotNull(message = "{tokenDTO.active}",groups = {Group.Check.class})
    private Boolean active;
}
